package com.fr.json;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

public class JsonTest {
	public static void main(String [] args){
		A a = new A();
		a.setB("b");
		a.setC(true);
		String s = JSON.toJSONString(a);
		System.out.println(s);
	}
	
	static class A implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = 2005700131290773987L;
		
		private int a;
		
		private String b;
		
		private Boolean c;

		public int getA() {
			return a;
		}

		public void setA(int a) {
			this.a = a;
		}

		public String getB() {
			return b;
		}

		public void setB(String b) {
			this.b = b;
		}

		public void setC(Boolean c) {
			this.c = c;
		}
		
		public float getFloat(){
			return 1.2F;
		}
		
		public float gotFloat(){
			return 1.2F;
		}
		
	}

}
